/**
 * Timer.h
 *
 * @author Bematech S.A.
 */
#ifndef __BILBAO_UTIL_TIMER_CLASS_H__
#define __BILBAO_UTIL_TIMER_CLASS_H__

#include "bilbao/types.h"
#include "bilbao/lang/Thread.h"

namespace bilbao
{
	namespace util
	{
		/**
		 *
		 */
		class Timer : public lang::Thread
		{
		public:
			Timer();
			Timer( long limit );
			virtual ~Timer();

			/**
			 * @override
			 */
			void run( void );

		protected:
			long currTime;
			long limitTime;
		};

	} //namespace util
} //namespace bilbao

#endif //__BILBAO_UTIL_TIMING_CLASS_H__
